package com.xd.center.http.proxy;

import com.xd.center.http.builder.MethodMetadata;

import java.util.Map;

public interface HttpProxy {

  String AUTH_CACHE_FREFIX = "gxd:redis:http:";
  Long AUTH_CACHE_TIMEOUT = 3600l; //一小时

  Object execute(MethodMetadata methodMetadata, Object[] argv, boolean resetAuth);

  String auth(String url, Map<String, String> headers, Object requestBean, String key, Long timeout, boolean reset);
}
